package com.simba.server.components.data;

import java.util.ArrayList;
import java.util.List;

public class BoxInfo implements IRecordData
{
	private int id;
	private String boxCode;
	private String boxType;
	private String slotId;
	private String planId;
	private String roadSlot;
	private List<SortInfo> mails;
	private int uploadFlag;
	private int uploadNum;
	private String createTime;
	private String template;

	public String getBoxCode()
	{
		return this.boxCode;
	}

	public String getBoxType()
	{
		return this.boxType;
	}

	public String getCreateTime()
	{
		return this.createTime;
	}

	public int getId()
	{
		return this.id;
	}

	public List<SortInfo> getMails()
	{
		if (mails == null)
		{
			mails = new ArrayList<>();
		}
		return mails;
	}

	public String getPlanId()
	{
		return planId;
	}

	@Override
	public String getRecordDataName()
	{
		return "Box-Pack-Data";
	}

	public String getRoadSlot()
	{
		return roadSlot;
	}

	public String getSlotId()
	{
		return this.slotId;
	}

	public int getUploadFlag()
	{
		return this.uploadFlag;
	}

	public int getUploadNum()
	{
		return this.uploadNum;
	}

	@Override
	public void restoreData()
	{
		// TODO Auto-generated method stub

	}

	public void setBoxCode(String boxCode)
	{
		this.boxCode = boxCode;
	}

	public void setBoxType(String boxType)
	{
		this.boxType = boxType;
	}

	public void setCreateTime(String packTime)
	{
		this.createTime = packTime;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public void setMails(List<SortInfo> mails)
	{
		this.mails = mails;
	}

	public void setPlanId(String planId)
	{
		this.planId = planId;
	}

	public void setRoadSlot(String roadSlot)
	{
		this.roadSlot = roadSlot;
	}

	public void setSlotId(String slotId)
	{
		this.slotId = slotId;
	}

	public void setUploadFlag(int uploadFlag)
	{
		this.uploadFlag = uploadFlag;
	}

	public void setUploadNum(int uploadNum)
	{
		this.uploadNum = uploadNum;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}
}
